home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cnews007.zip
/
CNEWS007.NWS
next >
Wrap
Text File
|
1988-05-29
|
28KB
|
605 lines
Volume 1, Number 7 30 May 1988
+---------------------------------------------------------------+
| |
| - C News - |
| |
| International |
| C Programming & Compiler Review |
| Newsletter |
| |
+---------------------------------------------------------------+
US Office:
Editor Barry Lynch
Technical Editor Marshall Presnell
Australian Office:
Editor David Nugent
Asst Editor Kevin Bergin
C News is published monthly by the C BBS as its official
newsletter. You are encouraged to submit articles for publication
in C News. Articles should be related to C programming and can be
Tutorials, reviews or articles of interest to the C programming
community. All Operating systems are fairly represented and this
newsletter shows no favoritism to any one in particular. Instruct-
ions on how to submit articles for publication is included on the
last page.
C News is the property of the C BBS and is Copyright 1988 by the
the C BBS. All rights are reserved and distribution is limited to
electronic distribution and personal printed copies. C News cannot
be resold at any profit, by any organization. All material enclosed
within the newsletter is the opinions of the writers and not the
C BBS or it's Sysop.
C News 1-07 30 May 1988
=================================================================
TABLE OF CONTENTS
=================================================================
1. EDITORIAL
The Heap: messages from the editor.................... 1
2. C Spot Run: A User Supported Library
by Todd Lehr .......................................... 2
3. Beginning C Functions
by Jack Hess ........................................ 5
4. NOTES
Article Submission Standards ............................. 8
Address's ............................................... 9
USER Response Form ....................................... 10
5. INDEX ................................................... 11
6. Distribution Points ..................................... 13
C News 1-07 Page 1 30 May 1988
================================================================
The Heap: Messages from the editor
================================================================
As you may notice, C News is later than usual with this issue.
This is due to a major event in my life, <House Purchase> that
caused all computer related activities to stop for the last month.
Now that the house is in order, I am desperately trying to get back
into the computers again. On the plate, are 1) get acquainted with
MSC Version 5.1 and the MS Editor, 2) Review the MS Version 2.0
Software Development kit, 3) a article on Software Copyrights, and
4) a review on a new project on the C BBS - a XENIX 386 BBS system
that supports Usenet and Fidonet. Hopefully, some of the articles
will be ready for Issue 8, which is scheduled for the end of June
at the moment.
So with that, I will leave and get back to the reading - That
I am so far behind on - of the backed up computer mag's. C U
in the next issue.
C News 1-07 Page 2 30 May 1988
================================================================
C Spot Run: A user supported library
================================================================
As a relatively new C programmer, one of the biggest
problems I had was the rewriting all the custom routines that I
had already written in Turbo Pascal. Fortunately for me, I
found C Spot Run, an excellent Shareware C Library, from New
Dimension Software, in Cherry Hill, NJ. (The address follows the
article). It contains functions for almost all aspects of
programming, and the source code is available from the author,
for a 50 dollar registration fee.
One of the main strengths of CSR is its data input
functions, with over 20 functions available, double that, if
you count their windowing counterparts. With this large
selection of input commands at your fingertips, CSR removes some
of the great drudgery in programming. These versatile routines
allow you to specify, field sizes, ranges, and default values.
There also are full line editing routines, that allow insertion,
deletion, and other manipulation of the input string. Modifying
these function calls to work in a window is as easy as adding a
"w" to the front of the function name, and inserting a window
identifer, this value is returned by the "wopen(...)" routine.
General Description of the Input Routines,
[w][f]inpt<type>[r][e][d](....)
| | | | | |
| | | | | +---> Allows default value to be
| | | | | specified
| | | | +------> Full Editing
| | | +---------> High/Low Range values
| | +-------------> Field Type (int or string)
| +----------------------> Allows field size argument
+-------------------------> Windowing Function Specifier
The windowing functions are easy to use, fast, and work extremely
well. Originally based on the "Windows for C" and "Windows BOSS"
C libraries, the functions should be familiar to users of those
packages.
CSR also has a rich assortment of screen I/O routines
with full color control, which also easily convert to use with
windows. Functions to place a string at and X,Y coordinate,
"putat(x,y,str)", or use a formatted output string
"putatf(x,y,frmt,str)" are included. The library also includes
string center and string center with formatted output,
"center(line,str), centerf(line,frmt,str)", as well as many other
character and cursor control functions. Also available are more
advanced routines, such as screen saving and restoring, functions
to draw boxes, screen scrolling, as well as many others. Another
C News 1-07 Page 3 30 May 1988
================================================================
C Spot Run: A user supported library
================================================================
helpful feature are the built in pop-up menu functions, in fact
there are two different types of menus. The first in a generic
pop-up which allows the specification of where to put the menu,
the border type, and a **char array of the menu options. The
options are automatically centered, as well as having formatting
options, such as horizontal lines, blank lines, and inactive
choices. The more advanced menu routine allow the passing of a
custom designed structure, from which the menu is then
constructed.
In addition to all the I/O routines, CSR also include
many functions not normally found in PD library packages. One
such example are the